<@admin.header title="汽车配置">

<@common.timeselector />
<@common.validate/>
<script type="text/javascript">
    $(document).ready(function(){
		$('#mainForm').validate();
    });
</script>
<style>
	
</style>
</@admin.header>
<body>
    <div class="place">
        <span>位置：</span>
        <ul class="placeul">
            <li>
                <a href="${base}/right.do">首页</a>
            </li>
            <li>
                <a href="list.do">汽车管理</a>
            </li>
            <li>
                <a href="">
                	${entity.name}&empty;配置
                </a>
            </li>
        </ul>
    </div>
    <div class="formbody">
        <@nerve.carEditNav nav="${template}" />
		
		<div class="tabson formPage" style="width:960px;margin:8px auto;">
		<form action="saveConfigure.do" method="post" id="mainForm">
		<input type="hidden" name="car.id" value="${entity.id!'0'}" />
		
        <div class="dflist">
            <div class="listtitle">
            	基本参数
            </div>
			<#--创建引用，方便代码书写-->
			<#assign b=entity.configure />
			<input type="hidden" name="car.configure.id" value="${b.id!'0'}" />
            <table >
            	<tr>
            		<td width="50%">生产厂家</td>
					<td>
						<input  type="text" name="car.configure.factory" value="${b.factory!''}" />
					</td>
            	</tr>
				<tr>
					<td>车门数</td>
					<td>
						<select name="car.configure.door" >
							<#list 2..7 as d>
							<option value="${d}" <#if b.door?? && b.door==d?string>selected="selected"</#if> >${d}门</option>
							</#list>
						</select>
					</td>
				</tr>
				<tr>
					<td>座位数</td>
					<td>
						<select name="car.configure.seat" >
							<#list 2..10 as d>
							<option value="${d}" <#if b.seat?? &&b.seat==d?string>selected="selected"</#if> >${d}</option>
							</#list>
						</select>
					</td>
				</tr>
				<tr>
					<td>长x宽x高</td>
					<td>
						<input type="text" value="${b.length!''}" name="car.configure.length" class="small"  />
						x
						<input type="text" value="${b.width!''}" name="car.configure.width"  class="small"/>
						x
						<input type="text" value="${b.height!''}" name="car.configure.height"  class="small"/>
					</td>
				</tr>
				<tr>
            		<td>车身类型</td>
					<td>
						<@nerve.c_category value="${b.category!''}" name="car.configure.category" />
					</td>
            	</tr>
				<tr>
            		<td>轴距(mm)</td>
					<td>
						<input  type="text" name="car.configure.wheel" value="${b.wheel!''}" />
					</td>
            	</tr>
				<tr>
            		<td>整备质量(Kg)</td>
					<td>
						<input  type="text" name="car.configure.weight" value="${b.weight!''}" />
					</td>
            	</tr>
				<tr>
            		<td>油箱容积(L)</td>
					<td>
						<input  type="text" name="car.configure.tank" value="${b.tank!''}" />
					</td>
            	</tr>
				<tr>
            		<td>行李箱容积</td>
					<td>
						<input  type="text" name="car.configure.trunk" value="${b.trunk!''}" />
					</td>
            	</tr>
				<tr>
            		<td>-</td>
					<td>-</td>
            	</tr>
            </table>
        </div>
		
		<div class="dflist">
            <div class="listtitle">
            	发动机参数
            </div>
			<#--创建引用，方便代码书写-->
			<#assign f=entity.configure.motor />
			<input type="hidden" name="car.configure.motor.id" value="${f.id!'0'}" />
            <table >
            	<tr>
            		<td width="50%">进气型式</td>
					<td>
						<@nerve.c_air value="${f.air!''}" name="car.configure.motor.air" />
					</td>
            	</tr>
				<tr>
            		<td>最大功率</td>
					<td>
						<input  type="text" name="car.configure.motor.power" value="${f.power!''}" />
					</td>
            	</tr>
				<tr>
            		<td>供油方式</td>
					<td>
						<@nerve.c_oil value="${f.oilOffer!''}" name="car.configure.motor.oilOffer" />
					</td>
            	</tr>
				<tr>
					<td>环保标准</td>
					<td>
						<@nerve.c_env value="${f.environment!''}" name="car.configure.motor.environment" />
					</td>
				</tr>
				<tr>
					<td>燃油类型</td>
					<td>
						<@nerve.c_oilType value="${f.oilType!''}" name="car.configure.motor.oilType" />
					</td>
				</tr>
				<tr>
            		<td>油耗(L/100km)</td>
					<td>
						<input  type="text" name="car.configure.motor.oilUse" value="${f.oilUse!''}" />
					</td>
            	</tr>
				<tr>
            		<td>排量</td>
					<td>
						<input  type="text" name="car.configure.motor.output" value="${f.output!''}" />
					</td>
            	</tr>
				<tr>
            		<td>气缸数量</td>
					<td>
						<input  type="text" name="car.configure.motor.cylinders" value="${f.cylinders!''}" />
					</td>
            	</tr>
				<tr>
            		<td>单缸气门数</td>
					<td>
						<input  type="text" name="car.configure.motor.door" value="${f.door!''}" />
					</td>
            	</tr>
				<tr>
            		<td>-</td>
					<td>-</td>
            	</tr>
			</table>
		</div>
		
		<div class="dflist">
            <div class="listtitle">
            	底盘&车轮制动
            </div>
			<#--创建引用，方便代码书写-->
			<#assign d=entity.configure.bottom />
			<input type="hidden" name="car.configure.bottom.id" value="${d.id!'0'}" />
            <table >
            	<tr>
					<td>变速器类型</td>
					<td>
						<@nerve.c_shift value="${d.shift!''}" name="car.configure.bottom.shift" />
					</td>
				</tr>
					<tr>
            		<td>档位</td>
					<td>
						<input  type="text" name="car.configure.bottom.gear" value="${d.gear!''}" />
					</td>
            	</tr>
				<tr>
					<td>驱动方式</td>
					<td>
						<@nerve.c_drive value="${d.drive!''}" name="car.configure.bottom.drive" />
					</td>
				</tr>
				<tr>
					<td>前悬挂型式</td>
					<td>
						<@nerve.c_Hang value="${d.frontHang!''}" name="car.configure.bottom.frontHang" />
					</td>
				</tr>
				<tr>
					<td>后悬挂型式</td>
					<td>
						<@nerve.c_Hang value="${d.backHang!''}" name="car.configure.bottom.backHang" />
					</td>
				</tr>
				<tr>
					<td>前制动类型</td>
					<td>
						<@nerve.c_Brake value="${d.frontBrake!''}" name="car.configure.bottom.frontBrake" />
					</td>
				</tr>
				<tr>
					<td>后制动类型</td>
					<td>
						<@nerve.c_Brake value="${d.backBrake!''}" name="car.configure.bottom.backBrake" />
					</td>
				</tr>
				<tr>
					<td>助力类型</td>
					<td>
						<@nerve.c_powerType value="${d.powerType!''}" name="car.configure.bottom.powerType" />
					</td>
				</tr>
				<tr>
					<td>前轮胎规格</td>
					<td>
						<input  type="text" name="car.configure.bottom.frontTyre" value="${d.frontTyre!''}" />
					</td>
				</tr>
				<tr>
					<td>后轮胎规格</td>
					<td>
						<input  type="text" name="car.configure.bottom.backTyre" value="${d.backTyre!''}" />
					</td>
				</tr>
			</table>
		</div>
		
		<div class="clear"></div>
		
		<div class="dflist">
            <div class="listtitle">
            	安全配置
            </div>
			<#--创建引用，方便代码书写-->
			<#assign a=entity.configure.security />
			<input type="hidden" name="car.configure.security.id" value="${a.id!'0'}" />
            <table >
            	<tr>
            		<td width="50%">驾驶座安全气囊</td>
					<td>
						<@nerve.c_ value="${a.seatAirbag!''}" name="car.configure.security.seatAirbag" />
					</td>
            	</tr>
				<tr>
            		<td width="50%">副驾驶安全气囊</td>
					<td>
						<@nerve.c_ value="${a.sndSeatAirbag!''}" name="car.configure.security.sndSeatAirbag" />
					</td>
            	</tr>
				<tr>
            		<td width="50%">前排侧气囊</td>
					<td>
						<@nerve.c_ value="${a.frontAirbag!''}" name="car.configure.security.frontAirbag" />
					</td>
            	</tr>
				<tr>
            		<td width="50%">后排侧气囊</td>
					<td>
						<@nerve.c_ value="${a.backAirbag!''}" name="car.configure.security.backAirbag" />
					</td>
            	</tr>
				<tr>
            		<td width="50%">前排头部气囊</td>
					<td>
						<@nerve.c_ value="${a.frontHeadAirbag!''}" name="car.configure.security.frontHeadAirbag" />
					</td>
            	</tr>
				<tr>
            		<td width="50%">后排头部气囊</td>
					<td>
						<@nerve.c_ value="${a.backHeadAirbag!''}" name="car.configure.security.backHeadAirbag" />
					</td>
            	</tr>
				<tr>
            		<td width="50%">膝部气囊</td>
					<td>
						<@nerve.c_ value="${a.lapAirbag!''}" name="car.configure.security.lapAirbag" />
					</td>
            	</tr>
				<tr>
            		<td width="50%">遥控钥匙</td>
					<td>
						<@nerve.c_ value="${a.key!''}" name="car.configure.security.key" />
					</td>
            	</tr>
				<tr>
            		<td width="50%">-</td>
					<td>
						-
					</td>
            	</tr>
			</table>
		</div>
		
		<div class="dflist">
            <div class="listtitle">
            	操控配置
            </div>
			<#--创建引用，方便代码书写-->
			<#assign c=entity.configure.control />
			<input type="hidden" name="car.configure.control.id" value="${c.id!'0'}" />
            <table >
            	<tr>
            		<td width="50%">防抱死刹车系统</td>
					<td>
						<@nerve.c_ value="${c.abs!''}" name="car.configure.control.abs" />
					</td>
				</tr>
				<tr>
            		<td width="50%">动力分配(EBD/CBC)</td>
					<td>
						<@nerve.c_ value="${c.ebd!''}" name="car.configure.control.ebd" />
					</td>
				</tr>
				<tr>
            		<td width="50%">刹车辅助</td>
					<td>
						<@nerve.c_ value="${c.eba!''}" name="car.configure.control.eba" />
					</td>
				</tr>
				<tr>
            		<td width="50%">牵引力控制</td>
					<td>
						<@nerve.c_ value="${c.pull!''}" name="car.configure.control.pull" />
					</td>
				</tr>
				<tr>
            		<td width="50%">车身稳定控制</td>
					<td>
						<@nerve.c_ value="${c.stable!''}" name="car.configure.control.stable" />
					</td>
				</tr>
				<tr>
            		<td width="50%">自动驻车/上坡辅助</td>
					<td>
						<@nerve.c_ value="${c.uphill!''}" name="car.configure.control.uphill" />
					</td>
				</tr>
				<tr>
            		<td width="50%">陡坡缓降</td>
					<td>
						<@nerve.c_ value="${c.hdc!''}" name="car.configure.control.hdc" />
					</td>
				</tr>
				<tr>
            		<td width="50%">空气悬挂</td>
					<td>
						<@nerve.c_ value="${c.airHang!''}" name="car.configure.control.airHang" />
					</td>
				</tr>
				<tr>
            		<td width="50%">-</td>
					<td>
						-
					</td>
				</tr>
			</table>
		</div>
			
		<div class="dflist">
            <div class="listtitle">
            	多媒体配置
            </div>
			<#--创建引用，方便代码书写-->
			<#assign m=entity.configure.media />
			<input type="hidden" name="car.configure.media.id" value="${m.id!'0'}" />
            <table >
            	<tr>
            		<td width="50%">GPS导航系统</td>
					<td>
						<@nerve.c_ value="${m.gps!''}" name="car.configure.media.gps" />
					</td>
				</tr>
				<tr>
            		<td width="50%">中控台液晶屏</td>
					<td>
						<@nerve.c_ value="${m.led!''}" name="car.configure.media.led" />
					</td>
				</tr>
				<tr>
            		<td width="50%">CD</td>
					<td>
						<@nerve.c_ value="${m.cd!''}" name="car.configure.media.cd" />
					</td>
				</tr>
				<tr>
            		<td width="50%">DVD</td>
					<td>
						<@nerve.c_ value="${m.dvd!''}" name="car.configure.media.dvd" />
					</td>
				</tr>
				<tr>
            		<td width="50%">自动空调</td>
					<td>
						<@nerve.c_ value="${m.autoAir!''}" name="car.configure.media.autoAir" />
					</td>
				</tr>
				<tr>
            		<td width="50%">车载冰箱</td>
					<td>
						<@nerve.c_ value="${m.fridge!''}" name="car.configure.media.fridge" />
					</td>
				</tr>
				<tr>
            		<td width="50%">蓝牙/车载电话</td>
					<td>
						<@nerve.c_ value="${m.bluetooth!''}" name="car.configure.media.bluetooth" />
					</td>
				</tr>
				<tr>
            		<td width="50%">扬声器数量</td>
					<td>
						<@nerve.c_speaker value="${m.speaker!''}" name="car.configure.media.speaker" />
					</td>
				</tr>
				<tr>
            		<td width="50%">-</td>
					<td>
						-
					</td>
				</tr>
			</table>
		</div>
		<div class="clear"></div>
		<div class="dflist">
            <div class="listtitle">
            	外部配置
            </div>
			<#--创建引用，方便代码书写-->
			<#assign o=entity.configure.out />
			<input type="hidden" name="car.configure.out.id" value="${o.id!'0'}" />
            <table >
            	<tr>
            		<td width="50%">全景天窗</td>
					<td>
						<@nerve.c_ value="${o.qjtk!''}" name="car.configure.out.qjtk" />
					</td>
				</tr>
				<tr>
            		<td width="50%">电动天窗</td>
					<td>
						<@nerve.c_ value="${o.ddtk!''}" name="car.configure.out.ddtk" />
					</td>
				</tr>
				<tr>
            		<td width="50%">氙气大灯</td>
					<td>
						<@nerve.c_ value="${o.xqdd!''}" name="car.configure.out.xqdd" />
					</td>
				</tr>
				<tr>
            		<td width="50%">LED大灯</td>
					<td>
						<@nerve.c_ value="${o.led!''}" name="car.configure.out.led" />
					</td>
				</tr>
				<tr>
            		<td width="50%">日间行车灯</td>
					<td>
						<@nerve.c_ value="${o.rjxcd!''}" name="car.configure.out.rjxcd" />
					</td>
				</tr>
				<tr>
            		<td width="50%">转向头灯</td>
					<td>
						<@nerve.c_ value="${o.zxtd!''}" name="car.configure.out.zxtd" />
					</td>
				</tr>
				<tr>
            		<td width="50%">前电动车窗</td>
					<td>
						<@nerve.c_ value="${o.qddcc!''}" name="car.configure.out.qddcc" />
					</td>
				</tr>
				<tr>
            		<td width="50%">后电动车窗</td>
					<td>
						<@nerve.c_ value="${o.hddcc!''}" name="car.configure.out.hddcc" />
					</td>
				</tr>
				<tr>
            		<td width="50%">后视镜电动调节</td>
					<td>
						<@nerve.c_ value="${o.hsjddtj!''}" name="car.configure.out.hsjddtj" />
					</td>
				</tr>
				<tr>
            		<td width="50%">后视镜电动折叠</td>
					<td>
						<@nerve.c_ value="${o.hsjddzd!''}" name="car.configure.out.hsjddzd" />
					</td>
				</tr>
				<tr>
            		<td width="50%">后雨刷</td>
					<td>
						<@nerve.c_ value="${o.hys!''}" name="car.configure.out.hys" />
					</td>
				</tr>
				<tr>
            		<td width="50%">感应雨刷</td>
					<td>
						<@nerve.c_ value="${o.gyys!''}" name="car.configure.out.gyys" />
					</td>
				</tr>
            </table>
		</div>
		<div class="dflist">
            <div class="listtitle">
            	内饰
            </div>
			<#--创建引用，方便代码书写-->
			<#assign i=entity.configure.in />
			<input type="hidden" name="car.configure.out.in" value="${i.id!'0'}" />
            <table >
            	<tr>
            		<td width="50%">真皮方向盘</td>
					<td>
						<@nerve.c_ value="${i.zpfxp!''}" name="car.configure.in.zpfxp" />
					</td>
				</tr>
				<tr>
            		<td width="50%">多功能方向盘</td>
					<td>
						<@nerve.c_ value="${i.dgnfxp!''}" name="car.configure.in.dgnfxp" />
					</td>
				</tr>
				<tr>
            		<td width="50%">方向盘上下调节</td>
					<td>
						<@nerve.c_ value="${i.fxpsxtj!''}" name="car.configure.in.fxpsxtj" />
					</td>
				</tr>
				<tr>
            		<td width="50%">方向盘前后调节</td>
					<td>
						<@nerve.c_ value="${i.fxpqhtj!''}" name="car.configure.in.fxpqhtj" />
					</td>
				</tr>
				<tr>
            		<td width="50%">方向盘电动调节</td>
					<td>
						<@nerve.c_ value="${i.fxpddtj!''}" name="car.configure.in.fxpddtj" />
					</td>
				</tr>
				<tr>
            		<td width="50%">真皮座椅</td>
					<td>
						<@nerve.c_ value="${i.zpzy!''}" name="car.configure.in.zpzy" />
					</td>
				</tr>
				<tr>
            		<td width="50%">运动座椅</td>
					<td>
						<@nerve.c_ value="${i.ydzy!''}" name="car.configure.in.ydzy" />
					</td>
				</tr>
				<tr>
            		<td width="50%">座椅高低调节</td>
					<td>
						<@nerve.c_ value="${i.zygdtj!''}" name="car.configure.in.zygdtj" />
					</td>
				</tr>
				<tr>
            		<td width="50%">定速巡航</td>
					<td>
						<@nerve.c_ value="${i.dsxh!''}" name="car.configure.in.dsxh" />
					</td>
				</tr>
				<tr>
            		<td width="50%">泊车辅助</td>
					<td>
						<@nerve.c_ value="${i.pcfz!''}" name="car.configure.in.pcfz" />
					</td>
				</tr>
				<tr>
            		<td width="50%">倒车视频影像</td>
					<td>
						<@nerve.c_ value="${i.dcspyx!''}" name="car.configure.in.dcspyx" />
					</td>
				</tr>
				<tr>
            		<td width="50%">-</td>
					<td>
						-
					</td>
				</tr>
            </table>
		</div>
		<div class="clear" >
			<br />
			<@nerve.c_save />
		</div>
		</form>
		</div>
	</div>
</body>
<script>
	$(document).ready(function(){
		<#if ERROR??>App.toast.error("${ERROR}");</#if>
	});
</script>
</html>